Plotly Tutorial¶

In [7]:
import plotly.express as px
import plotly.offline as po

po.offline.init_notebook_mode()

Scatter¶

This is a scatter plot of the given data

In [8]:
df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species",
                 size='petal_length', hover_data=['petal_width'])
fig.show()